<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <title>Document1112222211</title>
    <style>
      /*209000851 朱海*/
    #app {
      width: 1650px;
      height: 832px;
      margin: 0 auto;
      box-sizing: border-box;
      border: 1px solid #c9c9c9;
    }
    .box {
      font-size: 30px;
      height: 40px;
      background: #f5f5f5;
    }
    .box span:nth-child(1) {
      line-height: 32px;
      margin-left: 10px;
    }

    .box span:last-child {
      line-height: 30px;
      float: right;
      margin-right: 20px;
    }
     .left {
      float: left;
      background: #f5f5f5;
      height: 728px;
      margin-top: 10px;
      flex-wrap: nowrap;
    }

    
    .phoneList-item {
      box-sizing: border-box;
      border-style: solid;
      border-width: 1px;
      width: 1355px; ;
      height: 790px; ;
      padding :20px 20px 20px 20px;
      margin-right: 10px;
      margin-bottom :10px;
      justify-content: center;
      display: flex;
      align-items :center;
      background:#f5f5f5; 
      
    }
   .phoneList-item1 {
      border-style: solid;
      border-width: 0px;
      padding :0px 40px 10px 10px;
      margin-right: 20px;
      margin-bottom :50px;
      justify-content: space-around;
      background:#fff;
      box-sizing: border-box;
      width: 300px;
      height: 345px;
      position: relative;
      float: left;   
      display: flex;
      flex-wrap: wrap;
      white-space:nowrap;
      
}

.phoneList-item1 li{
    text-align: center;
   
}

    </style>
</head>
<body>
    <div id="app"></div>
      <template id="root">
        <div class="box">
              <span>手机</span>
            <span> 查看更多 ></span>
        </div>
   <div class="left">
<img src="images/ad1.png">
</div>
<div class="phoneList-item" >
    <div class="home-card">
      <!--使用v-for循环数据-->
        <div class="phoneList-item1" v-for="item in phoneList">
            <ul>
            <li style="list-style:none">
            <image :src="item.img" mode=""></image><br/>
            <li style="list-style:none" ><span >{{item.itle}}</span>  </li>
            <li style="list-style:none" ><span style="color: #c9c9c9">{{item.des}}</span>  </li>
            <li style="list-style:none" ><span style="color: #e6967f;">{{item.price}}<del style="color:#c9c9c9 ;">{{item.price_out}}</del></span>  </li>
                </li>
        </ul>
        </div>
    </div>
</div>
        </script>


    </template>
    <script>
        //创建应用实例
        const app=Vue.createApp({
            template:"#root",
           data(){
            return{
               phoneList :[
                {id:' 100081',img: 'images/phone1.png' ,itle:'Redmi K50电竞版',des:'全线拉满的冷血旗舰',price:'3299元起'},
                {id:' 100081',img: 'images/phone2.png' ,itle:'Redmi K60',des:'骁龙8+|2K 高光直屏|5500mAh',price:'2499元起'},
                {id:' 100081',img: 'images/phone3.png' ,itle:'Redmi K60 Pro',des:'【第二代骁龙8】狂暴引擎',price:'3499元起'},
                {id:' 100081',img: 'images/phone4.png' ,itle:'Redmi Note 12 Pro 极速版',des:'高通骁龙778G,OLED柔性直屏+一亿像素',price:'1699元起'},
                {id:' 100081',img: 'images/phone5.png' ,itle:'Xiaomi 13 限量定制色',des:'全新第二代骁龙8|徕卡专业光学镜头',price:'4999元起',price_out:'5299元起'},
                {id:' 100081',img: 'images/phone6.png' ,itle:'Xiaomi 13',des:'徕卡原生双画质 | 6.36″超窄边屏幕',price:'3999元起'},
                {id:' 100081',img: 'images/phone7.png' ,itle:'Redmi Note 12 5G',des:'三星OLED护眼屏|骁龙5G芯|5000mAh电量舰',price:'1999元起'},
                {id:' 100081',img: 'images/phone8.png' ,itle:'Xiaomi 13 Pro',des:'全新第二代骁龙8|徕卡专业光学镜头',price:'4999元起',price_out:'5299元起'},
            ]

            }
           }
        })
      const root=  app.mount("#app")
    </script>
</body>
</html>